package net.lab1024.sa.base.module.support.cmdb.domain.form;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import net.lab1024.sa.base.common.json.deserializer.DictDataDeserializer;

/**
 * chenyuqiang 新建表单
 *
 * @Author chenyuqiang
 * @Date 2025-10-16 19:03:13
 * @Copyright 1
 */

@Data
public class CmdbAddForm {



    @Schema(description = "设备名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "设备名称 不能为空")
    private String deviceName;

    @Schema(description = "ip", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "ip 不能为空")
    private String ip;

    @Schema(description = "掩码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "掩码 不能为空")
    private String mask;

    @Schema(description = "负责人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "负责人 不能为空")
    private String leader;








    private Integer type;

    @Schema(description = "安全域名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "安全域名称 不能为空")
    private String hostName;

    @Schema(description = "部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "部门 不能为空")
    private String deptName;

}